<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        #grade{
           /* display: flex;*/
            list-style:none;
        }
    </style>
    <script src="js/jquery.js"></script>
    <script>
        $(function(){
            $.get("grades.do",function (data) {
               //alert(data);
               //alert(JSON.stringify(data));
               let u=$("#grade");
               $.each(data,function(i,d){
                   u.append("<tr><td>"+d.id+"</td><td>"+d.gname+"</td></tr>");
               });
            },"json");
        });
    </script>
</head>
<body>
  <table id="grade" border="1" cellspacing="0" cellpadding="0">
      <tr>
          <td>编号</td>
          <td>名称</td>
      </tr>
  </table>
</body>
</html>